# -*- coding: utf-8 -*-
"""
Created on Tue Nov 19 22:26:14 2019

@author: zhryyshr
"""
import requests
import time
import fake_useragent as fu    #动态的浏览器标识
ua = fu.UserAgent()
from bs4 import BeautifulSoup
import os
import re
os.chdir('D:/Picture/mengkun')
#打开成果发布页面
time.sleep(3)
url_mengkun = 'http://lab.mkblog.cn/wallpaper/api.php?cid=360new&start=0&count=30'
header = {'User-Agent':ua.random }
response = requests.get(url_mengkun,headers = header)
soup_find = BeautifulSoup(response.text,'lxml')
picture1 = soup_find.select('#walBox > div > div > img')
picture2 = soup_find.select('#walBox > div > img')   
print(picture2)


